Joule.md: Added Interrupt Pin assignment information#723
Open
swfFrg wants to merge 1 commit intoeclipse-mraa:masterfrom
Open
Joule.md: Added Interrupt Pin assignment information#723swfFrg wants to merge 1 commit intoeclipse-mraa:masterfrom
swfFrg wants to merge 1 commit intoeclipse-mraa:masterfrom
Conversation
Verified that they worked with UBUNTU 16.04 LTS, Joule 570X, Tuchuck, BIOS eclipse-mraa#174, MRAA V1.5.1-24-g2ea6810 Setup: use "#define CHECK_ALL_80_PINS_CONFIGURATION_STATUS 1" if you want to check which pins are interrupt "configurable" If not defined, one "specified pin" can be tested with the interrupt handler 3 pin switch connected: to 1.8v J13.12 and GND J12.39, switch center pin connected to "Pin55" J13.15 in example below pseudo code: init mraa!!! call initIsrPins() void myISR { static uint32_t myCnt = 0; qDebug("Interrupt: POWER_FAIL!!! %d\n", myCnt++); } void initIsrPins(void) { mraa_result_t myStatus; uint8_t myPinNum = 1; #ifdef CHECK_ALL_80_PINS_CONFIGURATION_STATUS for(myPinNum = 1; myPinNum <=80; myPinNum++) { mraa_gpio_context myIsrPwrFail = mraa_gpio_init(myPinNum); #else mraa_gpio_context myIsrPwrFail = mraa_gpio_init(55); // Manually enter Pin to test #endif if(myIsrPwrFail == 0) qDebug("FAILED mraa_gpio_context"); else { myStatus = mraa_gpio_dir(myIsrPwrFail, MRAA_GPIO_IN); if(myStatus != MRAA_SUCCESS) qDebug("FAILED mraa_gpio_dir"); else { myStatus = mraa_gpio_isr(myIsrPwrFail, MRAA_GPIO_EDGE_BOTH, (void (*)(void*)) ISR_POWER_FAIL, NULL); if(myStatus != MRAA_SUCCESS) qDebug("FAILED mraa_gpio_isr"); else qDebug("Passed:%d", myPinNum); } } #ifdef CHECK_ALL_80_PINS_CONFIGURATION_STATUS } } for(;;) { }; }
Contributor
|
Unfortunately changing the github issue title in the GUI is not enough, you need to actually amend to change the title, sign it off and push --force it. |
Contributor
|
If you get a change to fix this it would be great to merge it! Thanks |
Contributor
|
@swfFrg, could you please do the sign-off mentioned above? We'd be happy to merge your patch, but we can't do this without a signoff (see CONTRIBUTING.md as to why). |
Author
|
Sorry, I have been extremely busy. Shall attempt to do this next week.
Best regards,
Floyd
Floyd Goldstein
SoftwareFlair Inc.
530.268.3809
Company Confidential
LOGO
From: Alex T [mailto:notifications@github.com]
Sent: Saturday, June 10, 2017 9:21 AM
To: intel-iot-devkit/mraa
Cc: swfFrg; Mention
Subject: Re: [intel-iot-devkit/mraa] Joule.md: Added Interrupt Pin assignment information (#723)
@swfFrg <https://github.com/swffrg> , could you please do the sign-off mentioned above? We'd be happy to merge your patch, but we can't do this without a signoff (see CONTRIBUTING.md as to why).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#723 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AV4c2OlhB5EtB00tZCzecf7kzn4TTT6Rks5sCsJSgaJpZM4NUZdm> . <https://github.com/notifications/beacon/AV4c2B7fITiMH_pCriunqWUCnuP1Kayyks5sCsJSgaJpZM4NUZdm.gif>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verified that they worked with UBUNTU 16.04 LTS, Joule 570X, Tuchuck, BIOS #174, MRAA V1.5.1-24-g2ea6810
Setup:
use
"#define CHECK_ALL_80_PINS_CONFIGURATION_STATUS 1" if you want to check which pins are interrupt "configurable"
If not defined, one "specified pin" can be tested with the interrupt handler
3 pin switch connected: to 1.8v J13.12 and GND J12.39, switch center pin connected to "Pin55" J13.15 in example below
Qt pseudo code:
init mraa()
call initIsrPins()
void myISR {
static uint32_t myCnt = 0;
qDebug("Interrupt GPIO!!!! %d\n", myCnt++);
}
void initIsrPins(void)
{
mraa_result_t myStatus;
uint8_t myPinNum = 1;
#ifdef CHECK_ALL_80_PINS_CONFIGURATION_STATUS
for(myPinNum = 1; myPinNum <=80; myPinNum++)
{
mraa_gpio_context myIsr = mraa_gpio_init(myPinNum);
#else
mraa_gpio_context myIsr = mraa_gpio_init(55); // Manually enter Pin to test
#endif
#ifdef CHECK_ALL_80_PINS_CONFIGURATION_STATUS
}
}
for(;;) { };
}
Signed-off-by: Floyd Goldstein floydg@softwareflair.com